{{if validation_errors()}}
<ul class="message error">
    <li>{{validation_errors()}}</li>
</ul>
{{/if}}

<div class="clear"></div>
<form class="block-content form" id="simple_form" method="post" action="create">
<h1>Sản Phẩm Mới/Hot</h1>
<ul class="tabs js-tabs same-height">
    <li class="current"><a href="#tab-locales" title="Locales">Thông tin chi tiết</a></li>
    <!--<li><a href="#tab-options" title="Options"></a></li>    
    <li><a href="#tab-seo" title="Seo">{{$items->lang->line('seo')}}</a> </li>-->
</ul>

<div class="tabs-content">    
        <div id="tab-locales">
            {{if isset($items->id)}}{{form_hidden('id', $items->id)}}{{/if}}
            <fieldset>			
                <!--<legend>bacdfd</legend>-->
                <p>
                    <label for="title">Tên sản phẩm</label>
                    <input type="text" name="title" readonly id="simple-required" value="{{if isset($items->title)}}{{$items->title}}{{/if}}" class="full-width">
                    {{form_error('title')}}
                </p>
                <p>
                    <label for="simple-select">Sản phẩm mới?</label>
                    <select name="stNew" id="simple-select" class="full-width">
                        {{html_options options=$optionNew selected=$items->stNew}} 
                    </select>
                </p>
                <p>
                    <label for="simple-select">Sản phẩm hot?</label>
                    <select name="stBestBuy" id="simple-select" class="full-width">
                        {{html_options options=$optionBestBuy selected=$items->stBestBuy}} 
                    </select>
                </p>
                <!--<p>
                    <label for="content">Ngày cập nhật mới</label>
                    <span class="input-type-text margin-right relative">
                        <input type="text" name="simple-calendar" id="simple-calendar" value="">
                        <img src="{{base_url()}}data/templates/backend/xgo/images/icons/fugue/calendar-month.png" width="16" height="16">
                    </span>
                </p>-->
            </fieldset>
            
        </div>
        
        <br/><br/><br/><br/><br/>  
        <fieldset class="grey-bg no-margin">
            <legend>{{$items->lang->line('action')}}</legend>
            <p class="input-with-button">
                <button type="submit">{{$items->lang->line('save')}}</button>
                <button style="float:right" type="button" onclick="window.history.back()">{{$items->lang->line('back')}}</button>
            </p>
        </fieldset>				
	</div>
</form>
